package com.ykh.mybbsdemo.service;

import com.ykh.mybbsdemo.dao.pojo.SysUser;
import com.ykh.mybbsdemo.vo.Result;
import com.ykh.mybbsdemo.vo.UserVo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-08-30
 * Time: 10:16
 */
public interface SysUserService {
    //根据id查找用户
    SysUser findUserById(long id);

    //根据用户名\密码查找用户
    SysUser findUser(String account, String password);

    //根据token获取用户的信息
    Result findUserInfoByToken(String token);

    //根据前端输入的账号查找用户
    SysUser findUserByAccount(String account);

    //保存用户
    void save(SysUser sysUser);

    //根据评论人员的ID查询 作者的信息
    UserVo findUserVoById(Long id);
}
